import { resolvemdpathfromurl } from "./resolvemdpathfromurl";
import { start } from "./start";
import { raw } from "./states";
export default async function () {
    // require("../temp/mathjax.css");
    return !(async () => {
        //@ts-ignore

        const { default: loadprerenderedinit } = await import(
            "./loadprerenderedinit"
        );
        await loadprerenderedinit();
        const url: string = resolvemdpathfromurl();
        if (!raw.cachemain.get(url)) {
            if (raw.menulist.includes(url)) {
                const { default: loadprerenderpage } = await import(
                    "./loadprerenderpage"
                );
                await loadprerenderpage(url);
            }
        }
    })().then(() => {
        return start();
    });
}
